package com.distribution.system.domain.dto;

import com.distribution.common.annotation.valid.IdCard;
import com.distribution.common.annotation.valid.MobilePhone;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author destinyhlp
 * @date 2023/6/2 03:14
 */

@Data
public class ChoosePhoneDTO {
    // 号码第几页
    private int page;
    @NotBlank(message = "商品编码不能为空")
    private String productCode;
    @NotBlank(message = "姓名不能为空")
    private String certName;
    @NotBlank(message = "身份证号不能为空")
    @IdCard
    private String certNum;
    @NotBlank(message = "联系电话不能为空")
    @MobilePhone
    private String customerPhone;
    @NotBlank(message = "归属地省名称不能为空")
    private String attributeProvince;
    @NotBlank(message = "归属地省区划代码不能为空")
    private String attributeProvinceCode;
    @NotBlank(message = "归属地市名称不能为空")
    private String attributeCity;
    @NotBlank(message = "归属地市区划代码不能为空")
    private String attributeCityCode;
    @NotBlank(message = "收货地省名称不能为空")
    private String addressProvince;
    @NotBlank(message = "收货地省区划代码不能为空")
    private String addressProvinceCode;
    @NotBlank(message = "收货地市名称不能为空")
    private String addressCity;
    @NotBlank(message = "收货地市区划代码不能为空")
    private String addressCityCode;
    @NotBlank(message = "收货地县名称不能为空")
    private String addressDistrict;
    @NotBlank(message = "收货地县区划代码不能为空")
    private String addressDistrictCode;
    @NotBlank(message = "收货地详细地址不能为空")
    private String addressStreet;

    private String smsCode;
    private String keywords;
}
